|
dcmotor28fng 2.2.1
|
DC Motor 28 FNG Click Example. More...
Macros | |
| #define | MIKROBUS_POSITION_DCMOTOR28FNG MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
DC Motor 28 FNG Click Example.
This example demonstrates the use of the DC Motor 28 FNG Click board. It initializes the Click driver, calibrates the offset for accurate current measurements, and then controls the motor in different states while measuring and logging the output current in milliamps (mA).
The demo application is composed of two sections:
Initializes the logger and the DC Motor 28 FNG Click driver and performs offset calibration for current measurements.
Controls the motor in a sequence of states: FORWARD, BRAKE, REVERSE, and COAST. In each state, the output current is measured and logged, providing insights into the motor's performance and consumption.
| #define MIKROBUS_POSITION_DCMOTOR28FNG MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |